package org.example.service.Impl;

import org.example.bean.Menu;
import org.example.mapper.MenuDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 邹斌
 * @create 2024/3/21
 */
@Service
public class MenuService {
    @Autowired
    MenuDao menuDao;


    public boolean reg(Menu menu) {
        return false;
    }


    public List<Menu> getAll() {
        return menuDao.list();
    }
    public void update(Menu menu){menuDao.update(menu);}
}
